<?php $this->pageTitle = Yii::t('user','Регистрация новго пользователя');?>

<h1>Регистрация нового пользователя</h1>

<?php $this->widget('application.widgets.FlashMessagesWidget'); ?>

<div class="form">
	
<?php $form = $this->beginWidget('CActiveForm',array(
	'id' => 'registration-form',
	'enableClientValidation' => true
));?>
 
    <?php echo $form->errorSummary($model); ?>
 
    <div class="row">
        <?php echo $form->labelEx($model,'nickName'); ?>
        <?php echo $form->textField($model,'nickName') ?>
		<?php echo $form->error($model,'nickName'); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model,'email'); ?>
        <?php echo $form->textField($model,'email') ?>
		<?php echo $form->error($model,'email'); ?>
    </div>
	
    <div class="row">
        <?php echo $form->labelEx($model,'password'); ?>
        <?php echo $form->passwordField($model,'password') ?>
		<?php echo $form->error($model,'password'); ?>
    </div>
    
     <div class="row">
        <?php echo $form->labelEx($model,'cPassword'); ?>
        <?php echo $form->passwordField($model,'cPassword') ?>
		<?php echo $form->error($model,'cPassword'); ?>
    </div>
    
    
     <?php if(Yii::app()->getModule('user')->showCaptcha):?> 
        <?php if(extension_loaded('gd')): ?>
	    <div class="row">
	       <?php echo $form->labelEx($model,'verifyCode'); ?>
		<div>
		   <?php $this->widget('CCaptcha',array('showRefreshButton' => false)); ?>
		   <?php echo $form->textField($model,'verifyCode'); ?>
		   <?php echo $form->error($model,'verifyCode'); ?>
		</div>
		 <div class="hint">
            Введите цифры указанные на картинке
		 </div>
	    </div>
	   <?php endif; ?>
     <?php endif; ?>		
    
  
   
    <div class="row submit">
        <?php echo CHtml::submitButton('Зарегистрироваться'); ?>
    </div>
 
<?php $this->endWidget(); ?>
</div><!-- form -->

<div style='float:left;'>   
  <div style='float:left;padding-right:5px'>
	<?php $this->widget('application.modules.yupe.components.ysc.yandex.YandexShareApi',array(
		 'type' => 'button',
		 'services' => 'all'
	));?>
  </div>  
</div>